﻿using System.Runtime.Serialization;
using System;
using System.Collections.Generic;
namespace MulticastService
{
    [DataContract]
    public class ConfirmMessage
    {
        [DataMember]
        public bool call_confirmed;
        [DataMember]
        public string exception_code;

        public static ConfirmMessage ConfirmedMessage()
        {
            ConfirmMessage cm = new ConfirmMessage();
            cm.call_confirmed = true;
            return cm;
        }

        public static ConfirmMessage UnconfirmedMessage()
        {
            ConfirmMessage cm = new ConfirmMessage();
            cm.call_confirmed = false;
            return cm;
        }

        public static ConfirmMessage UnconfirmedMessage(string ec)
        {
            ConfirmMessage cm = new ConfirmMessage();
            cm.call_confirmed = false;
            cm.exception_code = ec;
            return cm;
        }
    }


}